package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.BQuestion;
import com.ruoyi.system.domain.vo.BQuestionVo;
import com.ruoyi.system.service.BQuestionService;
import com.ruoyi.system.mapper.BQuestionMapper;
import org.springframework.stereotype.Service;
import java.util.List;

/**
* @author yangxingze
* @description 针对表【b_question(题库表)】的数据库操作Service实现
* @createDate 2024-12-28 00:45:04
*/
@Service
public class BQuestionServiceImpl extends ServiceImpl<BQuestionMapper, BQuestion>
    implements BQuestionService{

    /**
     * 查询题库列表
     * @param question
     * @return
     */
    @Override
    public List<BQuestionVo> selectQuestionList(BQuestion question) {
        return baseMapper.selectQuestionList(question);
    }

    /**
     * 根据ID查询题库
     * @param id
     * @return
     */
    @Override
    public BQuestionVo selectQuestionById(Long id) {
        return baseMapper.selectQuestionById(id);
    }

    /**
     * 删除题库
     * @param ids
     * @return
     */
    @Override
    public int deleteQuestionByIds(Long[] ids) {
        return baseMapper.deleteQuestionByIds(ids);
    }
}




